package com.kg.rails.ui.panels.property;

import com.kg.rails.component.editor.model.custom.StationCell;
import com.kg.rails.component.editor.swing.GraphComponent;

import javax.swing.*;

/**
 * User: Babanin
 * Date: 05.05.12
 * Time: 1:50
 */
public class StationPropertyPanel extends PropertyPanel<StationCell> {
    public StationPropertyPanel(StationCell cell, GraphComponent component) {
        super(cell, component);

        addProperty("", new JLabel(""));
        addProperty("Кол-во элементов: ", new JLabel(String.valueOf(cell.getChildCount())));
    }

    @Override
    protected void save() {
        super.save();
    }

    @Override
    protected void reset() {
        super.reset();
    }

    @Override
    public String getDescription() {
        return "Свойства станции";
    }
}
